package com.ktjiaoyu.mapper;

import com.ktjiaoyu.entity.Flower;
import com.ktjiaoyu.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlowerMapper {
    /**
     * 分页查询
     */
    public List<Flower> getPage(@Param("flower") Flower flower,
                                @Param("pageBegin") Integer pageBegin,
                                @Param("pageSize") Integer pageSize);
    /**
     * 根据条件查询总数据量
     */
    public Integer count(@Param("flower") Flower flower);
    /**
     * 添加
     */
    public int insert(Flower flower);
    /**
     * 详情
     */
    public Flower getById(@Param("id") Integer id);
    /**
     * 修改
     * @param flower
     * @return
     */
    public int update(Flower flower);
    /**
     * 删除
     */
    public int delete(@Param("flowerId") Integer flowerId);
    public Flower getByAccount(@Param("flowerName") String flowerName);
}
